package org.hope.lee.utils;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 *   
 *  @ProjectName: separated-read-write 
 *  @Description:
 *  @author: lisen
 *  @date: 2017/12/10  
 */
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DBContextHolder.getDBType();
    }
}
